package com.wxshare.sdk.execute;

import com.alibaba.fastjson.JSONObject;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Query;

public interface WXShareExecute {

    /**
     * 获取access_token
     * @param
     * @return
     */
    @Headers({"Content-type: application/x-www-form-urlencoded"})
    @GET("token")
    Call<JSONObject> getAccessToken(@Query("grant_type") String grantType, @Query("appid") String appId, @Query("secret") String secret);

    /**
     * 获取ticket
     * @return
     */
    @Headers({"Content-type: application/x-www-form-urlencoded"})
    @GET("ticket/getticket")
    Call<JSONObject> getTicket(@Query("access_token") String accessToken, @Query("type") String type);
}
